import { Injectable } from '@nestjs/common';

@Injectable()
export class AppService {
  getHello(): string {
    return 'Hello World!';
  }
  greet(name: string): string {
    return `Hello, ${name}!`;
  }
  echo(message: string): { message: string } {
    return { message };
  }
  getHomeOwners(): string[] {
    return ['1', '2', '3', '4'];
  }
  getLinks() {
    return [
      { name: 'Google', url: 'https://www.google.com' },
      { name: 'Next.js', url: 'https://nextjs.org' },
      { name: 'Vercel', url: 'https://vercel.com' },
      { name: 'GitHub', url: 'https://github.com' },
    ];
  }
  
}
